def get_config(branch):
    class Config:
        CDMLink = "http://cdmweb.ericsson.se/WEBLINK/ViewDocs"
        gbDocMap = {
            'ifdriver'      : '2/102 62-CNH 160 0986',
            'cai3gdriver'   : '3/102 62-CNH 160 0986-6',
            'guidriver'     : '1/10262-CNH 160 1540',
            'licence'       : '9/102 62-CNH 160 0986',
            'procengine'    : '3/102 62-CNH 160 0986',
            'proclog'       : '6/10262-CNH 160 0986',
            'procqueue'     : '7/10262-CSH 150 82',
            'taskmanager'   : '8/102 62-CNH 160 0986',
            'linkmanager'   : '1/10262-CNH 160 1540',
            'mmlengine'     : '5/10262-CNH 160 0986'
        }
    return Config

def get_html(config, component, raw, old_raw, rank, old_rank):
    if config.gbDocMap.has_key(component.name):
        docno = config.gbDocMap[component.name]
        return '<a href="%s?DocumentName=%s&Latest=true" target=_blank >%s</a>'\
            % (config.CDMLink, docno.replace('/',"%2F").replace(':',"%3A"), docno)
    else:
        return 'n/a'

def get_rank(config, component, raw):
    return 0.0

def get_raw(config, component):
    return None

